package com.woniu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.woniu.entity.wrapperinterface.AllProSpence;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
@TableName("pro_spence")

public class ProSpence implements AllProSpence,Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "spen_id", type = IdType.AUTO)
    private Integer spenId;

    private Integer proId;

    private Integer cateId;

    private String spenDate;

    @TableField(exist = false)
    private Project targetProject;

    @TableField(exist = false)
    private SpenCategory targetCategory;

    /**
     * 项目懒加载
     */
    @TableField(exist=false)
    private Project project;

    private BigDecimal spenPrice;

    public Integer getSpenId() {
        return spenId;
    }

    public void setSpenId(Integer spenId) {
        this.spenId = spenId;
    }
    public Integer getProId() {
        return proId;
    }

    public void setProId(Integer proId) {
        this.proId = proId;
    }
    public Integer getCateId() {
        return cateId;
    }

    public void setCateId(Integer cateId) {
        this.cateId = cateId;
    }
    public String getSpenDate() {
        return spenDate;
    }

    public void setSpenDate(String spenDate) {
        this.spenDate = spenDate;
    }
    public BigDecimal getSpenPrice() {
        return spenPrice;
    }

    public void setSpenPrice(BigDecimal spenPrice) {
        this.spenPrice = spenPrice;
    }

    public Project getProject() {
        return project;
    }

    public void setProject(Project project) {
        this.project = project;
    }

    public Project getTargetProject() {
        return targetProject;
    }

    public void setTargetProject(Project targetProject) {
        this.targetProject = targetProject;
    }

    public SpenCategory getTargetCategory() {
        return targetCategory;
    }

    public void setTargetCategory(SpenCategory targetCategory) {
        this.targetCategory = targetCategory;
    }

    @Override
    public String toString() {
        return "ProSpence{" +
            "spenId=" + spenId +
            ", proId=" + proId +
            ", cateId=" + cateId +
            ", spenDate=" + spenDate +
            ", spenPrice=" + spenPrice +
        "}";
    }
}
